<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import = "com.db4o.ext.ExtObjectContainer" %>
<%@page import = "com.db4o.servlet.Db4oServlet" %>
<%@page import = "facades.*" %>
<%@page import = "auser.*" %>
<%@page import = "java.util.*" %>
<c:if test="${empty param.id}"><c:redirect url="/app/start/index.jsp" /></c:if>
<% 
	SessionFacade sfacade = new SessionFacade(session); 
	Object obj = sfacade.getById(request.getParameter("id"));
	
	if(obj!=null) {
		sfacade.getContainer().delete(obj);
		sfacade.getContainer().commit();
	}
	
%>
<c:redirect url="/app/start/index.jsp" />
